<div class="article_top">
  <%=render :partial=>"article_search" ,:object=>params[:title] %>
</div>
<div class="article">
  <div class="left">
    <%= will_paginate @articles %>
    <ul>
      <%= render :partial=>"item" ,:collection=>@articles,:locals=>{:dis_des=>true,:dis_time=>true} %>
    </ul>

  </div>
  <div class="right">
    <div class="content">
      <% cache  :controller=>"advertisements",:action=>"list",:part=>"article_right_top" do %>
        <%=display_advertisement("ArticleRightTop") %>
      <% end %>
    </div>
    <% cache "hotnews",10.minutes.from_now.to_s do %>
      <%= render :partial=>"display/news_part",:object=>hotnews,:locals=>{:display_name=>"热点新闻"} %>
    <% end %>
  </div>
</div>
<%= render :partial=>"sub_menu" %>
<% javascript_tag do -%>
  var content= $(".article>.left").html();
  $(".article>.left").html(content.replace(/(<%=params[:title]%>)/g,"<font color='red'>$1</font>"));
<% end -%>


